using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace tKitchen
{
    public partial class MealInput : Form
    {
        public string MealName
        {
            get { return textBoxName.Text; }
            set { textBoxName.Text = value; }
        }

        public DateTime Date
        {
            get { return dateTimePicker1.Value; }
            set { dateTimePicker1.Value = value; }
        }

        public ListBox IncludedRecipe
        {
            get { return listBoxIncluded; }
            set { listBoxIncluded = value; }
        }

        public ListBox AllRecipe
        {
            get { return listBoxAll; }
            set { listBoxAll = value; }
        }




        public MealInput()
        {
            InitializeComponent();


        }

        public event EventHandler SaveButtonClick = delegate { };
        public event EventHandler NewRecipeButtonClick = delegate { };
        public event EventHandler AddButtonClick = delegate { };
        public event EventHandler RemoveButtonClick = delegate { };


        private void buttonSave_Click(object sender, EventArgs e)
        {
            SaveButtonClick(sender, e);
        }

        private void buttonNewRecipe_Click(object sender, EventArgs e)
        {
            NewRecipeButtonClick(sender, e);
        }

        private void buttonAdd_Click(object sender, EventArgs e)
        {
            AddButtonClick(sender, e);
        }

        private void buttonRemove_Click(object sender, EventArgs e)
        {
            RemoveButtonClick(sender, e);
        }


    }
}